-
Notifications
You must be signed in to change notification settings - Fork 85
Fix #21 #25
Fix #21 #25
Conversation
|
Awesome! As you can see below one of the CS checks failed, apparently on some trailing spaces. Something you could perhaps take a look at as well? Results are here: https://travis-ci.org/zendframework/zend-http/jobs/83107792 |
|
Done ! |
|
@Maks3w Is this something you could look at? I've been out of the game for quite some time (although I still feel for this particular component), so I am a little uncomfortable merging it. As far as I'm concerned it's ready to go! |
|
Well I have questions.
|
|
Errata: RFC2616 are expressed using EBNF Accept-Header is defined individually on RFC3282 http://tools.ietf.org/html/rfc7231#section-5.3 contains definitions around the whole AcceptX headers |
|
After reading RFC 7231 only the weight param ( This is the ABNF resume from http://tools.ietf.org/html/rfc7231#appendix-D |
|
@Maks3w How is this all relevant for this particular pull request? Fwiw, the implementations that are included in zend\http for the various accept header types come with own regexes to support and validate the different formats. Of course we can always refactor this class and deprecate parts of it. But that seems way beyond the scope of this particular issue: Ensuring no notices are thrown on invalid input. |
|
Reading the RFC and the ABNF resume split languages with |
|
Closed due inactivity. |
Prevents non well formatted accept header value.
Fix #21